<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, user-scalable=no, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="format-detection" content="telephone=no">
<title>交易流水</title>
<script src="static/js/lib/cssrem.js"></script>
<link href="static/css/style.css" rel="stylesheet">
<body>
	<div class="content">
	<form action="<%=basePath%>wap/order/addCourier" name="transport" id="transport" method="post" enctype="multipart/form-data">
		<input id="ordId" name="ordId" type="hidden" value="${ordId }">
		<input id="state" name="state" type="hidden" value="${state }">
		<input id="msg" type="hidden" value="${msg}">
		<div class="wrapper">
			<div class="bgwh pt20 transport-form">
				<div class="cell f30 pt20 pb20 mr20">
					<div class="cell__hd g6 transport-form__name">
						<label for="driverName">司机姓名:</label>
					</div>
					<div class="cell__bd ml20 pl20">
						<input class="input__style g3" id="linkmanName" name="linkmanName" type="text"
							placeholder="请您输入司机名字">
					</div>
				</div>
				<div class="cell f30 pt20 pb20 mr20">
					<div class="cell__hd g6 transport-form__name">
						<label for="driverPhone">联系方式:</label>
					</div>
					<div class="cell__bd ml20 pl20">
						<input class="input__style g3" id="linkmanPhone"  name="linkmanPhone" type="text"
							placeholder="请您输入司机的联系方式">
					</div>
				</div>
				<div class="cell f30 pt20 pb20 mr20">
					<div class="cell__hd g6 transport-form__name">
						<label for="licensePlate">车牌号:</label>
					</div>
					<div class="cell__bd ml20 pl20">
						<input class="input__style g3" id="plateNumber" name="plateNumber" type="text"
							placeholder="请您输入车牌号">
					</div>
				</div>
			</div>
			<!-- 备注 -->
			<dl class="bgwh mt20 pl20 pr20 ui-1px ge remark pb10">
				<dt class="f28 g6 pt20 pb20">填写备注:</dt>
				<dd class="rel">
					<textarea class="f28" name="remark" id="remark" data-limit="500"></textarea>
					<p class="textarea__tips"></p>
				</dd>
			</dl>
			<p class="f0 mt20 pl20">
				<i class="icon-05 dib vm mr10"></i> <span class="dib vm f22">请填写有效信息，以便货品运输追踪</span>
			</p>
			<div class="mt20 mb20 pt20 pb20"></div>
			<div class="mt20 mb20 pt20 pb20"></div>
			<div class="m20">
				<a class="btn btn__primary tc white f34 db ml10 mr10"
					onclick="save()">完成</a>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="static/js/lib/vendor.js"></script>
	<script type="text/javascript" src="static/js/lib/app.js"></script>
	<script type="text/javascript" src="static/js/lib/layer_mobile/layer.js"></script>
</form>
<script type="text/javascript">

window.onload=function(){
	var msg = document.getElementById('msg').value;
	if(!msg) return;
	 layer.open({
		 content:msg,
		 time: 2
      }); 
}




function save(){
	var linkmanName = document.getElementById('linkmanName').value;
	var linkmanPhone = document.getElementById('linkmanPhone').value;
	var plateNumber = document.getElementById('plateNumber').value;
	if(linkmanName.length <=0){
		 layer.open({
			 content:'请输入司机姓名',
			 time: 2
	      }); 
		 return false;
	}
	if(linkmanPhone.length <=0){
		 layer.open({
			 content:'请输入司机联系方式',
			 time: 2
	      }); 
		 return false;
	}
	if(plateNumber.length <=0){
		 layer.open({
			 content:'请输入车牌号',
			 time: 2
	      }); 
		 return false;
	}
	document.getElementById('transport').submit()
}
</script>
</body>

</html>
